/*
============================================================================
 Name        : $(Basename)ReqHandler.h
 Author      : $(Author)
 Version     :
 Copyright   : $(Copyright)
 Description : Simple AO example to make an async request to the server.
============================================================================
*/

#ifndef __$(BASENAME)REQHANDLER_H__
#define __$(BASENAME)REQHANDLER_H__

#include <e32base.h>
#include "$(Basename)ServerSession.h"

class C$(Basename)ReqHandler : public CActive
	{

	public:

		static C$(Basename)ReqHandler* NewL();
		static C$(Basename)ReqHandler* NewLC();
		virtual ~C$(Basename)ReqHandler();

	public: // New functions

		void RequestTime();
		void CancelRequest() ;
		TTime Time() const;

	protected: // Functions from base classes

		void RunL();
		void DoCancel();

	private:

		C$(Basename)ReqHandler();
		void ConstructL();

	private: // Data

		R$(Basename)ServerSession iSession;
		TTime iTime;

	};
#endif //__$(BASENAME)REQHANDLER_H__
